package com.atgugui.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 讲师模块服务启动类
 */
@SpringBootApplication
@ComponentScan(basePackages = "com.atgugui")
@EnableDiscoveryClient // 注册到nacos
@EnableFeignClients // 调用远程服务接口
@EnableSwagger2
public class EduSerciveApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduSerciveApplication.class,args);
    }
}
